<style type="text/css">

table td {
    border: none;
}

table th {
    border: none;
}
</style>

<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch"
          action="${request.getContextPath()}/Productivity/daily" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="itemStatistics"/>
            <label>日期：</label>
            <input type="text" name="selectTime" value="${selectTime}" data-toggle="datepicker">
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
        %{--<a type="button" class="btn btn-green"--}%
        %{--href="${request.getContextPath()}/Productivity/daily?export=xls"--}%
        %{--data-toggle="doexport" data-confirm-msg="确定要导出吗？" data-icon="sign-out">导出</a>--}%
        </div>
    </form>
</div>

<div class="bjui-pageContent tableContent">
    <div style="margin: auto 0; width:96%;">
        <div class="row" style="padding: 0 8px;">
            <div class="col-md-12">
                <div class="panel panel-default">
                    <div class="panel-body">

                        <div>
                            <lable><strong>GM Daily Productivity</strong></lable>
                            %{--<g:if test="${itemStatistics.size() > 0}">
                                <g:render template="itemStatisticsExcel"></g:render>
                            </g:if>--}%
                            <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
                                <tr>
                                    <th style="border: none">MTD WS:</th>
                                    <td style="border: none">${itemStatistics.MTD_WS[0]}</td>
                                    <th style="border: none">PLAN WS:</th>
                                    <td style="border: none">${maintainRemark.PLAN_WS[0]}</td>
                                    <th style="border: none">AVG. WS:</th>
                                    <td style="border: none">${itemStatistics.AVG_WS[0]}</td>
                                    <th style="border: none">Scrap:</th>
                                    <td style="border: none">${itemStatistics.SCRAP[0]}</td>
                                </tr>
                                <tr>
                                    <th style="border: none">MTD WO:</th>
                                    <td style="border: none">${itemStatistics.MTD_WO[0]}</td>
                                    <th style="border: none">PLAN WO:</th>
                                    <td style="border: none">${maintainRemark.PLAN_WO[0]}</td>
                                    <th style="border: none">AVG. WO:</th>
                                    <td style="border: none">${itemStatistics.AVG_WO[0]}</td>
                                    <th style="border: none">Terminate:</th>
                                    <td style="border: none">${itemStatistics.TERMINATE[0]}</td>
                                </tr>
                                <tr>
                                    <th style="border: none">MTD KL:</th>
                                    <td style="border: none">${itemStatistics.MTD_KL[0]}</td>
                                    <th style="border: none">PLAN KL:</th>
                                    <td style="border: none">${maintainRemark.PLAN_KL[0]}</td>
                                    <th style="border: none">AVG. KL:</th>
                                    <td style="border: none">${itemStatistics.AVG_KL[0]}</td>
                                    <th style="border: none">Yield:</th>
                                    <td style="border: none">${itemStatistics.YIELD[0]}</td>
                                </tr>
                                <tr>
                                    <th style="border: none">WIP:</th>
                                    <td style="border: none">${itemStatistics.WIP[0]}</td>
                                    <th style="border: none"></th>
                                    <td style="border: none"></td>
                                    <th style="border: none">MOVE:</th>
                                    <td style="border: none">${itemStatistics.MOVE[0]}</td>
                                    <th style="border: none">T/R:</th>
                                    <td style="border: none">${itemStatistics.T_R[0]}</td>
                                </tr>
                            </table>
                        </div><br>


                        <div style="margin: auto 0; width:96%;">
                            <div class="row" style="padding: 0 8px;">
                                <div class="col-md-12">
                                    <div class="panel panel-default">
                                        <div class="panel-body">
                                            %{--<lable><strong>Department</strong></lable>--}%
                                            <g:if test="${department.size() > 0}">
                                                <g:render template="departmentExcel"></g:render>
                                            </g:if>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div><br>

                        <div style="margin: auto 0; width:96%;">
                            <div class="row" style="padding: 0 8px;">
                                <div class="col-md-12">
                                    <div class="panel panel-default">
                                        <div class="panel-body">
                                            <div style="float: right;margin: 0;">
                                                <lable><strong>Wafer out:</strong></lable>
                                                <g:if test="${waferOut.size() > 0}">
                                                    <g:render template="waferOutExcel"></g:render>
                                                </g:if>
                                            </div>

                                            <div style="float: left;margin:0;">
                                                <lable><strong>Wafer Start:</strong></lable>
                                                <g:if test="${waferStart.size() > 0}">
                                                    <g:render template="waferStartExcel"></g:render>
                                                </g:if>

                                            </div>
                                            %{--&nbsp;&nbsp;&nbsp;&nbsp;--}%

                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <br>

                        <div style="margin: auto 0; width:96%;">
                            <div class="row" style="padding: 0 8px;">
                                <div class="col-md-12">
                                    <div class="panel panel-default">
                                        <div class="panel-body">

                                            <div style="float: right;width: 240px;margin:0;">
                                                <lable><strong>Remark：</strong></lable>

                                                <div>
                                                    <br>
                                                    <g:if test="${maintainRemark.size() > 0}">
                                                        <g:each in="${maintainRemark}" status="i" var="dataInstance">
                                                        %{--<td style="word-wrap:break-word; word-break:break-all;">--}%
                                                        %{--${dataInstance.REMARK}--}%
                                                        %{--</td>--}%
                                                            <pre>
                                                                ${dataInstance.REMARK}
                                                            </pre>
                                                        </g:each>
                                                    </g:if>

                                                </div>
                                            </div>

                                            <div style="float: left;margin:0;">
                                                <lable><strong>B/N efficiency：</strong></lable>
                                                <g:if test="${efficiency.size() > 0}">
                                                    <g:render template="efficiencyExcel"></g:render>
                                                </g:if>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>